<form id="add-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST" action="">
    {:token()}
    
    {if  $group_id != 6}
    <div class="form-group">
        <label for="email" class="control-label col-xs-12 col-sm-2">任务类型:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="task_type" data-rule="required" class="form-control"  name="row[task_type]">
                <option value="1" >小红书任务</option>
                <option value="2" >抖音任务</option>
                <option value="3" >快手任务</option>
            </select>
        </div>
    </div>
    <div class="form-group">
        <label for="email" class="control-label col-xs-12 col-sm-2">任务所属:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="type" data-rule="required" class="form-control"  name="row[type]">
                {foreach name="type_arr" id="vo" }
                <option value="{$vo}">{$vo}</option>
                {/foreach}
                
            </select>
        </div>
    </div>
    <div class="form-group">
        <label for="email" class="control-label col-xs-12 col-sm-2">账号人设:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="character_type" data-rule="required" class="form-control"  name="row[character_type]">
                <option value="1" >素人</option>
                <option value="2" >官方合作</option>
            </select>
        </div>
    </div>
    <div class="form-group form-input form-input-title">
		<label class="control-label col-xs-12 col-sm-2">类目：</label>
		<div class="col-xs-12 col-sm-8">
			<input  data-rule="required" class="form-control form-control" placeholder="请输入该任务所属类目名称" name="row[category]" type="text" value="">
		</div>
	</div>
    {/if}
    <div class="form-group titel">
        <label for="username" class="control-label col-xs-12 col-sm-2">标题:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-content" class="form-control " rows="8" name="row[title]"
                                cols="50"  placeholder="如有多个标题请用等于号(=)分隔"></textarea>
        </div>
    </div>
    <div class="form-group">
        <label for="username" class="control-label col-xs-12 col-sm-2">内容:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-content" class="form-control " rows="16" name="row[content]"
                                cols="50" placeholder="如有多个内容请用等于号(=)分隔"></textarea>
        </div>
    </div>
    {if  $group_id != 6}
    <div class="form-group add_product" >
        <label for="c-birthday" class="control-label col-xs-12 col-sm-2">添加产品:</label>
        <div class="col-xs-12 col-sm-8">
                <div class="input-group">
                    <div class="input-group-addon no-border no-padding">
                        <span><button type="button"  class="btn btn-danger  product" style="float: left;"> 上传</button></span>
                        <span style="float: left;line-height: 30px;margin-left: 40px;">产品名称:<span class="title" style="color: #000;font-size: 16px;font-weight: 600;"></span></span>
                    </div> 
                </div>
        </div>
    </div>
    <input type="hidden" class="product_id" name="row[product_id]" value="">
    {/if}
    <div class="form-group">
        <label for="c-birthday" class="control-label col-xs-12 col-sm-2">任务图片:</label>
        <div class="col-xs-12 col-sm-8">
                <div class="input-group">
                    <input id="c-avatars" data-rule="" class="form-control" size="50" name="row[imgs]" type="text" value=""  style="display: none;">
                    <div class="input-group-addon no-border no-padding">
                        <span><button type="button" id="plupload-avatar" class="btn btn-danger plupload" data-input-id="c-avatars" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true" data-preview-id="p-avatars"><i class="fa fa-upload"></i> 上传</button></span>
                        <span><button type="button" id="fachoose-avatars" class="btn btn-primary fachoose" data-input-id="c-avatars" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> 选择</button></span>
                    </div>
                    <span class="msg-box n-right" for="c-avatars"></span>
                </div>
                
                <ul class="row list-inline plupload-preview" id="p-avatars" style="width: 100%;"></ul>
        </div>
    </div>
    <div class="form-group imgs1" style="display: none;">
        <label for="c-birthday" class="control-label col-xs-12 col-sm-2">任务图片B:</label>
        <div class="col-xs-12 col-sm-8">
                <div class="input-group">
                    <input id="c-avatar" data-rule="" class="form-control" size="50" name="row[imgs1]" type="text" value=""  style="display: none;">
                    <div class="input-group-addon no-border no-padding">
                        <span><button type="button" id="plupload-avatar" class="btn btn-danger plupload" data-input-id="c-avatar" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true" data-preview-id="p-avatar"><i class="fa fa-upload"></i> 上传</button></span>
                        <span><button type="button" id="fachoose-avatar" class="btn btn-primary fachoose" data-input-id="c-avatar" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> 选择</button></span>
                    </div>
                    <span class="msg-box n-right" for="c-avatar"></span>
                </div>
                
                <ul class="row list-inline plupload-preview" id="p-avatar" style="width: 100%;"></ul>
        </div>
    </div>
    <div class="form-group hidden layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
